package com.wh.mapper;

import com.wh.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface UserMapper {

//    @Select(value = "select * from user")
    public List<User> getUserList();

//    @Select(value = "select * from user where id=#{id}")
    public User getUserById(@Param("id") int id);

//    @Update(value = "update user set name=#{name} where id=#{id}")
    public int update(User user);
//    public void update(int id);

    public void update2(Map<String,Object> map);

    public int insert(User user);

    public void delete(User user);
}
